import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Parser p = new Parser();
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("\n Enter the key for searching...");
            String line = sc.nextLine();
            if (line.equals("exit"))
                break;
            else {
                byte[] b = p.get(line);
                if (b != null) {
                    System.out.println(new String (p.get(line)));
                }
                else {
                    System.out.println("Key not found");
                }
            }

        }
    }
}
